package xc.com.course.controller;

import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import xc.com.course.domain.CourseView;
import xc.com.course.service.CourseViewService;

@RequestMapping("/courseView")
@RestController
@CrossOrigin
@Api(tags = "courseView接口")
public class CourseViewController {
    @Autowired
    private CourseViewService courseViewService;

    @PostMapping("/select")
    public CourseView courseView(@RequestBody String courseId){
       return courseViewService.findByCourse(courseId);
    }
}
